#region Using directives
using System;
using System.Collections.Generic;
using System.Text;
using webapp4U.DAL;
#endregion


namespace webapp4U.BOL
{
	 public class ContactSetting
	 {
	 #region Member Variables

	 private Int32 _contactSettingID;

	 private String _adminEmail;

	 private String _companyName;

	 private String _email;

	 private String _fax;

	 private String _phone;

	 private String _hotline;

	 private String _address;

	 #endregion



	 #region Public Properties

	 public Int32 ContactSettingID
	 {
		 get { return _contactSettingID; }
		 set { _contactSettingID = value; }
	 }

	 public String AdminEmail
	 {
		 get { return _adminEmail; }
		 set { _adminEmail = value; }
	 }

	 public String CompanyName
	 {
		 get { return _companyName; }
		 set { _companyName = value; }
	 }

	 public String Email
	 {
		 get { return _email; }
		 set { _email = value; }
	 }

	 public String Fax
	 {
		 get { return _fax; }
		 set { _fax = value; }
	 }

	 public String Phone
	 {
		 get { return _phone; }
		 set { _phone = value; }
	 }

	 public String Hotline
	 {
		 get { return _hotline; }
		 set { _hotline = value; }
	 }

	 public String Address
	 {
		 get { return _address; }
		 set { _address = value; }
	 }

	 #endregion

	 #region public static Methods
	 public static int Insert(ContactSetting obj)
	 {
		 ContactSettingDAL db = new ContactSettingDAL();
		 return db.Insert(obj);
	 }

	 public static bool Update(ContactSetting obj)
	 {
		 ContactSettingDAL db = new ContactSettingDAL();
		 return db.Update(obj);
	 }

	 public static bool Delete(Int32 ContactSettingID)
	 {
		 ContactSettingDAL db = new ContactSettingDAL();
		 return db.Delete(ContactSettingID); 
	 }

	 public static ContactSetting GetContactSettingByID(Int32 ContactSettingID)
	 {
		 ContactSettingDAL db = new ContactSettingDAL();
		 return db.GetContactSettingByID(ContactSettingID);
	 }

	 //Get All ContactSetting
	 public static List<ContactSetting> GetAllContactSetting(int PageIndex, int PageSize)
	 {
		 ContactSettingDAL db = new ContactSettingDAL();
		 return db.GetAllContactSetting(PageIndex, PageSize);
	 }

	 // Get Count All records of Table  ContactSetting
	 public static int GetCountContactSetting()
	 {
		 ContactSettingDAL db = new ContactSettingDAL();
		 return db.GetCountContactSetting();
	 }



	 #endregion
	 }
}
